"use strict";
angular.module("app").directive("appTab", [function(){
	return {
		restrict: "A",
		replace: true,
		templateUrl: "view/template/tab.html",
		scope: {
			list: "=",
			tabClick: "&",
		},
		link: function($scope){
			$scope.click = function(item){
				$scope.selectId = item.id;
				$scope.tabClick(item);		
			};

		},
	};
}]);
